package com.realjinge.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.realjinge.dao.TypeDao;
import com.realjinge.entity.Type;

/**
 * 
 * @author realjinge
 * 
 */
@Service
public class TypeService {
	@Resource
	private TypeDao typeDao;

	public Integer insertType(Type type) {
		return typeDao.insertType(type);
	}

	public Type selectTypeByID(Integer id) {
		return typeDao.selectTypeByID(id);
	}

	public Type selectTypeByTypeCode(String typeCode) {
		return typeDao.selectTypeByTypeCode(typeCode);
	}
	
	public List<Type> selectTypeList() {
		return typeDao.selectTypeList();
	}

}
